package main

import "fmt"

func main() {
	moves := "UD"
	sign := judgeCircle(moves)
	fmt.Print(sign)
}

func judgeCircle(moves string) bool {
	pre := 0
	pro := 0
	for i := 0; i < len(moves); i++ {
		if moves[i] == 'U' {
			pre += 1
		} else if moves[i] == 'D' {
			pre -= 1
		} else if moves[i] == 'L' {
			pro -= 1
		} else {
			pro += 1
		}
	}
	return pre == pro && pre == 0
}
